package com.gitee.ly.ymorm.mapping;

import com.gitee.ly.ymorm.exceptions.YmOrmException;

import java.util.HashMap;

/**
 * ParamMap
 *
 * @author ly
 **/
public class ParamMap<V> extends HashMap<String, V> {
    @Override
    public V get(Object key) {
        if (!super.containsKey(key)) {
            throw new YmOrmException("Parameter '" + key + "' not found. Available parameters are " + keySet());
        }
        return super.get(key);
    }
}
